import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home/Home'
import City from '@/components/city/City'
import Shopinfo from '@/components/shops/Shop'
import User from '@/components/user/User'
import Register from '@/components/user/URegister'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/City',
      name: 'City',
      component: City
    },
    {
      path: '/Shop/:id',
      name: 'Shop',
      component: Shopinfo
    },
    {
      path: '/User',
      name: 'User',
      component: User,
      children: [
        {
          path: 'register',
          component: Register
        }
      ]
    }
  ]
})
